/**
 * StarInfoFrameBase.java
 *
 * Roslan's Remake of MOO in 3D using Ardor3D
 * (C) 2010-2012 Roslan Amir. All rights reserved.
 */

package name.roslan.games.moo3d.ui;

import name.roslan.games.moo3d.spatial.StarNode;

import com.ardor3d.extension.ui.backdrop.UIBackdrop;

/**
 * The base class for all star (and colony) information panels.
 * 
 * @author Roslan Amir
 * @version 1.0 - Jan 10, 2011
 */
public abstract class StarInfoFrameBase extends InfoFrameBase {

    /**
     * Constructor.
     * 
     * @param title - the title of the frame
     * @param backDrop - the backdrop to use
     */
    public StarInfoFrameBase(String title, UIBackdrop backDrop) {
        super(title, backDrop);
    }

    /**
     * Update the information to the currently selected Star (or Colony).
     * 
     * @param starNode - the Star (or Colony) whose info is to be updated
     */
    protected abstract void update(StarNode starNode);

}
